/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class TestEmailValidator {
    
    
    public TestEmailValidator() {
        
    }
    
    public static void main(String[] args) {
        EmailValidator objE = new EmailValidator();
        String[] ltE = {"mkyong@yahoo.com",
                        "mkyong-100@yahoo.com",
                        "mkyong.100@yahoo.com",
			"mkyong111@mkyong.com",
                        "mkyong-100@mkyong.net",
			"mkyong.100@mkyong.com.au",
                        "mkyong@1.com",
			"mkyong@gmail.com.com",
                        "mkyong+100@gmail.com",
			"mkyong-100@yahoo-test.com",
                        "mkyong",
                        "mkyong@.com.my",
			"mkyong123@gmail.a",
                        "mkyong123@.com",
                        "mkyong123@.com.com",
			".mkyong@mkyong.com",
                        "mkyong()*@gmail.com",
                        "mkyong@%*.com",
			"mkyong..2002@gmail.com",
                        "mkyong.@gmail.com",
			"mkyong@mkyong@gmail.com",
                        "mkyong@gmail.com.1a"};
        for (int i = 0; i < ltE.length; i++) {
            System.out.println(ltE[i] + ": " + objE.validate(ltE[i]));
        }
    }
}
